import 'dart:convert';

import 'package:dio/dio.dart';
import 'package:test/test.dart';

import 'util/api.dart';

void main() {
  test('test bean in http request', () async {
    final c = ApiClient(Dio());
    final userList = await c.getUserList();
    final user = await c.getUser(userList!.first.id);
    expect(jsonEncode(user!.toJson()), jsonEncode(userList.first.toJson()));
  });
}
